<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <%@include file="./js/resource.jsp" %>
  <head>
    <base href="<%=basePath%>">
    <title>用户登陆成功</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
  </head>
  <script type="text/javascript">
  $( function() {
      initDatagrid();
  });
  
  function initDatagrid() {
      $('#tt').datagrid({
        url:'user/getAllUsers.do',
        //本地数据排序，要把remoteSort配置成false 
        remoteSort:false,
        columns:[[
            {field:'userID',title:'用户ID',width:100,sortable:"true"},
            {field:'userName',title:'用户名',width:100,sortable:"true"},
            {field:'passWord',title:'密码',width:100,sortable:"true"}
        ]]
        });
  }
  </script>
  <body >
  <!-- 
  <table class="easyui-datagrid" title="Basic DataGrid" style="width:700px;height:250px"
            data-options="singleSelect:true,collapsible:true,url:'user/getAllUsers.do'">
        <thead>
            <tr>
                <th data-options="field:'userName',width:80">userName</th>
            </tr>
        </thead>
    </table>
   -->
   <div id="tt"></div>
  </body>
</html>
